<extend name="Public/base" />
<block name="content">
<div id="content">
	<div id="content-header">
		<div id="breadcrumb">
			<a class="tip-bottom" href="{:U('Index/index')}" data-original-title="首页"><i class="icon-home"></i> 首页</a>
			<a class="current" href="{$post_url}">{$meta_title}</a>
		</div>
	</div>
    <div class="container-fluid" style="margin-top:15px;">
        <!-- 活动信息 -->
        <div class="row-fluid">
            <form method="post" autocomplete="off" action="{:U('changeOrderMemberNew')}">
				<select class="form-control" style="width: 200px;" name="activity_id" id="activity_id" autocomplete="off" onchange="change_activity(activity_id)">
					<option value=0>选择活动</option>
					<volist name="activity_list" id="vo">
						<option value='{$vo.activity_id}'>{$vo.activity_name|strip_tags}</option>
					</volist>
				</select>
				<div id="more_info" style="display:none;">
            	<div class="control" id="member_list" style="margin:20px 0 5px 0;"></div>
            	<br/>
				<button class="btn btn-success" type="submit">确定回收</button>
				</div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
function change_activity(activity_id){
	var activity_id = parseInt($(activity_id).val());
	if(activity_id > 0){
		$('#more_info').show();
	}else{
		$('#more_info').hide();
	}
}

$(function (){
	//员工加载
    $.ajax({ url: "{:U('ServiceStatistics/getCategoryList')}", success: function(data){
    	if('' != data){
        	$('#member_list').html(data).hide().fadeIn(300);
    	}
        //初始化控件
        var IS_INIT = 1;
     	// 全选
        $(".checkbox-all").bind("click",function(){
            $(this).nextAll("div.checkbox-group").children("label").children("input").prop("checked", true);
        });
        // 反选
        $(".checkbox-opposite").bind("click",function(){
            $(this).nextAll("div.checkbox-group").children("label").children("input[type=checkbox]").each(function(e) {
                if ($(this).is(":checked")) {
                    $(this).prop("checked", false);
                }else{
                    $(this).prop("checked", true);
                }
            });
        });
	}});
})

//导航高亮
highlight_subnav("{:U('ServiceManage/changeOrderMember')}");
</script>
</block>